#ifndef GERMTAB_H
#define GERMTAB_H

#include <QWidget>
#include <QFileDialog>
#include <QMessageBox>
#include "imageloader.h"
#include "trainingcontrol.h"
namespace Ui {
    class GermTab;
}

class GermTab : public QWidget {
    Q_OBJECT
public:
    GermTab(QWidget *parent = 0);
    ~GermTab();
    void addLoader(ImageLoader *imageLoader);
    void showContent();

protected:
    void changeEvent(QEvent *e);

private slots:
    void setWavelet(bool);
    void showPercent(int);
    void setApproach(int);
    void setSize(QString);
    void setStep(QString);
    void setMaxEpochs(QString);
    void setHiddenN(QString);
    void setOutputN(QString);
    void load();
    void loadWeights();
    void trainNN();
    void runNN();

private:
    
    bool loadTCon();
    int toInt(const QString &input);

    Ui::GermTab *ui;
    QPointer<ImageLoader> imgL;
    QPointer<TrainingControl> tcon;
    int total;
    int percent, approach, size, step;
    int max, hiddenN, outputN;
};

#endif // GERMTAB_H
